package com.lifang.imsoa.im.comm;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * HTTPClient 工具类
 */
public class RegexUtils {
	
	public static boolean match(String regex, String str) {
		Pattern pattern = Pattern.compile(regex);
		Matcher matcher = pattern.matcher(str);

		return matcher.lookingAt();
	}
}
